<?php
namespace Home\Controller;
use Think\Controller;
class PostController extends Controller {
    
    public function __construct() {
        parent::__construct();
    }
    
    public function CurlPostData($IPCType,$baseInfo,$str){
    //dump($IPCType);die;
    if(!is_array($IPCType)){
    	return "参数类型错误";
    }
    $data['CompanyId'] = C('companyId');
    $data['Source'] = "1";
    $data['IPCType'] = $baseInfo;
    $data["$baseInfo"] = $IPCType; 
    $post = json_encode($data,true);
    //echo $post;die;
    $url = C('baseUrl').$str;
     //echo $url;die;
    $result = http_request($url,$post);
   	return $result;
   }
}